//
//  Created by inno on 11/12/11.
//
// To change the template use AppCode | Preferences | File Templates.
//


#import "Application.h"
#import "LoginRequest.h"

@implementation Application

static Application *application;

+ (Application *)getInstance {
    if (application == nil) {
        application = [[super allocWithZone:NULL] init];
    }
    return application;
}

+ (id)allocWithZone:(NSZone *)zone {
    return [[self getInstance] retain];
}

- (void)release {
    // never release
}

- (void)login:(NSString *)url:(NSString *)username :(NSString *)password {
    NSLog(@"login");
    LoginRequest *request = [LoginRequest new];
//    request.url  = url;
//    request.username  = username;
//    request.password  = password;
    [request send];
}

@end